/*
 * Copyright (c) 2013-2014, thinkjoy Inc. All Rights Reserved.
 *
 * Project Name: wy
 * $Id:  ActorPhoto.java 2016-01-25 16:32:43 $
 */



package com.wy.domain;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import com.wy.common.domain.BaseDomain;

import java.util.*;

public class ActorPhoto extends BaseDomain{

	private Integer status;
	private Long createDate;
	private Long lastModDate;
    private Long actorPhotoId;
    private String name;
    private String url;

	public ActorPhoto(){
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Long createDate) {
		this.createDate = createDate;
	}

	public Long getLastModDate() {
		return lastModDate;
	}

	public void setLastModDate(Long lastModDate) {
		this.lastModDate = lastModDate;
	}

	public void setActorPhotoId(Long value) {
        this.actorPhotoId = value;
    }

    public Long getActorPhotoId() {
        return this.actorPhotoId;
    }
    public void setName(String value) {
        this.name = value;
    }

    public String getName() {
        return this.name;
    }
    public void setUrl(String value) {
        this.url = value;
    }

    public String getUrl() {
        return this.url;
    }

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Status",getStatus())
			.append("CreateDate",getCreateDate())
			.append("LastModDate",getLastModDate())
			.append("ActorPhotoId",getActorPhotoId())
			.append("Name",getName())
			.append("Url",getUrl())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ActorPhoto == false) return false;
		if(this == obj) return true;
		ActorPhoto other = (ActorPhoto)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

